import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/blade-system/classfl/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getList2 = (current, size, params) => {
  return request({
    url: '/api/blade-system/basicdata/getList2',
    method: 'get',
    params: {
      ...params,
      current:current,
      size,
      type:1
    }
  })
}

export const insertBasic = (strJson) => {
  return request({
    url: '/api/blade-system/basicdata/insertBasic',
    method: 'post',
    params: {
      strJson
    }
  })
}


export const addBasicimg = (strjson, type) => {
  return request({
    url: '/api/blade-system/basicdata/addBasicimg',
    method: 'post',
    params: {
      strjson:strjson,
      type:type
    }
  })
}


export const getimgLb = (type,roleId,userId,placeId) => {
  return request({
    url: '/api/blade-system/basicdata/getList',
    method: 'get',
    params: {
      type:type,
      roleId:roleId,
      userId:userId,
      placeId:placeId
    }
  })
}

export const Delimg = (strJson) => {
  return request({
    url: '/api/blade-system/basicdata/delImgBl',
    method: 'post',
    params: {
      strJson:strJson
    }
  })
}

export const getClassifyList = (params) => {
  return request({
    url: '/api/blade-system/basicdata/getClassifyList',
    method: 'get',
    params: {
      ...params
    }
  })
}

export const InsertClassify = (params) => {
  return request({
    url: '/api/blade-system/basicdata/InsertClassify',
    method: 'post',
    data: params
  })
}

export const UpdateClassify = (params) => {
  return request({
    url: '/api/blade-system/basicdata/UpdateClassify',
    method: 'post',
    data: params
  })
}

export const UpdateVegeClassify = (json) => {
  return request({
    url: '/api/blade-system/basicdata/UpdateVegeClassify',
    method: 'post',
    params: {
      "json":json
    }
  })
}

